package cn.janescott.inner.space.data.system.dto;

import cn.janescott.inner.space.data.DataEnums;

import java.io.Serializable;
import java.util.Date;

/**
 * 账户状态对象
 *
 * @author scott
 * @date 2018/7/30
 */
public class AccountStatusDTO implements Serializable {

    private Long userId;

    private DataEnums.LockedEnums locked;

    private String lockReason;

    private Date frozen;

    private String frozenReason;

    private Integer shares;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public DataEnums.LockedEnums getLocked() {
        return locked;
    }

    public void setLocked(DataEnums.LockedEnums locked) {
        this.locked = locked;
    }

    public String getLockReason() {
        return lockReason;
    }

    public void setLockReason(String lockReason) {
        this.lockReason = lockReason;
    }

    public Date getFrozen() {
        return frozen;
    }

    public void setFrozen(Date frozen) {
        this.frozen = frozen;
    }

    public String getFrozenReason() {
        return frozenReason;
    }

    public void setFrozenReason(String frozenReason) {
        this.frozenReason = frozenReason;
    }

    public Integer getShares() {
        return shares;
    }

    public void setShares(Integer shares) {
        this.shares = shares;
    }

    public boolean isLocked() {
        return DataEnums.LockedEnums.LOCKED.equals(locked);
    }

    @Override
    public String toString() {
        return "AccountStatusDTO{" +
                "userId=" + userId +
                ", locked=" + locked +
                ", lockReason='" + lockReason + '\'' +
                ", frozen=" + frozen +
                ", frozenReason='" + frozenReason + '\'' +
                ", shares=" + shares +
                '}';
    }
}
